import { Injectable } from '@nestjs/common'
import { SmsSetting } from './sms-setting.entity'
import { InjectRepository } from '@nestjs/typeorm'
import { Repository } from 'typeorm'
@Injectable()
export class SmsSettingService {
  constructor(@InjectRepository(SmsSetting) public sms: Repository<SmsSetting>) {}

  saveSmsSetting(sms: SmsSetting) {
    this.sms.create({
      accessKeyID: sms.accessKeyID,
      accessKeySecret: sms.accessKeySecret,
      signName: sms.signName,
      templateCode: sms.templateCode
    })
  }
}
